home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 06 - 1990 / 06.01 Jan 90 / MacTutor Help Source / Code Resource Version / C Example / demo.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-08-29  |  1.3 KB  |  38 lines  |  [TEXT/KAHL]

  1. /***********************************************************************\
  2. | Purpose :: This header file contains all of the global data             |
  3. |             structures and function prototypes necessary for the        |
  4. |             demo program to run the CODE RESOURCE version of the        |
  5. |             MacTutor Help system.  Notice the absence of the Do_Help() |
  6. |             and Init_Help() prototypes!                                |
  7. |-----------------------------------------------------------------------|
  8. |        Copyright © Joe Pillera, 1990.  All Rights Reserved.            |
  9. |    Copyright © MacTutor Magazine, 1990.  All Rights Reserved.            |
  10. \***********************************************************************/
  11.  
  12. #define        MBarID                256
  13. #define        AppleID                256
  14. #define        FileID                257
  15. #define        EditID                258
  16. #define        HelpItem            1
  17. #define        QuitItem            2
  18. #define        AboutItem            1
  19. #define        About_Window        400
  20. #define        NIL                    0L
  21. #define        FRONT                (WindowPtr)-1
  22. #define        OK_Button            1
  23.  
  24. /* Global variables */
  25. extern     Boolean     program_done;
  26.  
  27. /* Demo program externs */
  28. extern    void    Bold_Button( DialogPtr, int );
  29. extern  void    Center_Window( DialogPtr, int, Boolean );
  30. extern    void    Do_Command( long );
  31. extern    void    Do_About_Box( void );
  32. extern    void    Do_Apple_Cmd( int );
  33. extern    void    Do_File_Cmd( int );
  34. extern    void    Do_Command( long );
  35. extern     void     Do_Event_Loop ( void );
  36. extern    void    Do_Help( void );
  37. extern    void    main( void );
  38.